package com.example.springstrategydemo.strategy;

import org.springframework.stereotype.Service;

/**
 * 英雄联盟策略类
 */
@Service
public class LoLStrategy implements IGameStrategy {

    @Override
    public boolean isSupport(Game game) {
        return game.getType() == 3;
    }

    @Override
    public void play(Game game) {
        System.out.println(game.getName() + "：面对疾风吧");
    }
}
